#include "mainwindow.h"
#include "ui_mainwindow.h"


MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    //connect(&one, SIGNAL(append(const QString&)), ui->textEdit, SLOT(append(const QString&)));
    XMLReader reader;
    reader.read("test.xml");
    Workspace * ws = WorkspaceFactory::Instance().createWorkspace();
    TokenRoulette *roulette = new TokenRoulette();
    roulette->setWorkspace(ws);
    ws->setRoulette(roulette);
    one.setRoulette(roulette);
    one.start();
}

MainWindow::~MainWindow()
{
    delete ui;
}
